import http from "@/http/index.ts"
import {Color,ColorListParam} from '@/api/color/type.ts'


// 新增颜色
export const addApi = (data: Color) => {
    return http.post("/color/createColor", data)
}

// 分页条件查询列表
export const getListApi = (data:ColorListParam) => {
    return http.get("/color/getColorList",data)
}
// 编辑颜色
export const editApi = (data: Color) => {
    return http.put("/color/updateColor", data)
}
// 删除颜色
export const deleteApi = (id: number) => {
    return http.delete(`/color/deleteColor/${id}`)
}

